package game.web.entity;

import game.web.dao.TicketDAO;
import game.web.dao.dto.TicketDTO;
import game.web.dao.factory.TicketFactory;
import projectx.core.base.ProjectXSystemException;
import projectx.core.base.ProjectXUserException;
import projectx.core.dao.Parameter;

public class TicketEntityManager {

	public static TicketDTO execute(String id) throws ProjectXSystemException,
			ProjectXUserException {
		
		System.err.println("Ticket EntityManager start...");

		TicketFactory factory = TicketFactory.getFactory();

		// where
		Parameter param = new Parameter();
		param.setString("seqid", id);

		TicketDAO dao = factory.getDAO();

		TicketDTO dto = dao.execute(param);

		return dto;

	}
}
